package com.mvc.business.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

/**
 * 订单条目明细
 */
@Entity(name = "B_ORDER_ITEM")
public class OrderItem extends BaseUnit {

	@NotNull
	private Integer	orderId;
	@NotNull
	@Length(max = 32)
	private String	customerPurchaseNo;
	@NotNull
	@Length(max = 64)
	private String	productDecription;
	@NotNull
	private Double	unitPrice;

	/**
	 * @return the orderId
	 */
	public Integer getOrderId() {
		return orderId;
	}

	/**
	 * @param orderId
	 *            the orderId to set
	 */
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	/**
	 * @return the productDecription
	 */
	public String getProductDecription() {
		return productDecription;
	}

	/**
	 * @param productDecription
	 *            the productDecription to set
	 */
	public void setProductDecription(String productDecription) {
		this.productDecription = productDecription;
	}

	/**
	 * @return the unitPrice
	 */
	public Double getUnitPrice() {
		return unitPrice;
	}

	/**
	 * @param unitPrice
	 *            the unitPrice to set
	 */
	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getCustomerPurchaseNo() {
		return customerPurchaseNo;
	}

	public void setCustomerPurchaseNo(String customerPurchaseNo) {
		this.customerPurchaseNo = customerPurchaseNo;
	}

}
